package com.zh.business.modules.sys.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@ApiModel(value="com.zh.business.modules.sys.domain.SysUserToken")
@Data
@Table(name = "sys_user_token")
public class SysUserToken implements Serializable {
    /**
     * 编号
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value="编号")
    private String id;

    @Column(name = "user_id")
    @ApiModelProperty(value="null")
    private Long userId;

    /**
     * token
     */
    @Column(name = "token")
    @ApiModelProperty(value="token")
    private String token;

    /**
     * 过期时间
     */
    @Column(name = "expire_time")
    @ApiModelProperty(value="过期时间")
    private Date expireTime;

    /**
     * 创建人
     */
    @Column(name = "create_by")
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @Column(name = "last_update_by")
    @ApiModelProperty(value="更新人")
    private String lastUpdateBy;

    /**
     * 更新时间
     */
    @Column(name = "last_update_time")
    @ApiModelProperty(value="更新时间")
    private Date lastUpdateTime;

    private static final long serialVersionUID = 1L;
}